package com.sykj.qianxuezhan.server.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sykj.qianxuezhan.bean.BagProject;
import com.sykj.qianxuezhan.mapper.BagProjectMapper;
import com.sykj.qianxuezhan.server.BagProjectService;
import com.sykj.util.reponse.CommonEnum;
import com.sykj.util.reponse.ResultBody;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author QianXuezhan
 * @Date 2020/8/8 9:32
 * @Description: TODO
 */
@Service
public class BagProjectServiceImpl extends ServiceImpl<BagProjectMapper, BagProject>  implements BagProjectService {
@Autowired
private  BagProjectMapper bagProjectMapper;

    @Override
    public ResultBody addBagProject(BagProject bagProject) {
        bagProjectMapper.addBagProject(bagProject);
        return new ResultBody(CommonEnum.SUCCESS);
    }

    @Override
    public List<BagProject> queryBagProId(String  bagId) {
        return bagProjectMapper.queryBagProId(bagId);
    }
}
